package com.zzxy.spring.processor;
import org.springframework.beans.BeansException;
import org.springframework.beans.factory.config.BeanPostProcessor;

public class MyBeanPostProcessor implements BeanPostProcessor {
    @Override
    public Object postProcessBeforeInitialization(Object bean,String BeanName) throws BeansException{
        System.out.println("5.post processor before ...");
        return bean;
    }

    @Override
    public Object postProcessAfterInitialization(Object o,String s) throws BeansException{
        System.out.println("8.post processor after ...");

        return null;
    }
}
